//
//  LCBaseDatabase.h
//  LC
//
//  Created by admin on 2017/6/27.
//
//

/**************
 .SQL_IF_TYPE
 **************/
enum SQL_IF_TYPE {
    SQL_IF_TYPE_FIRST = 1,
    SQL_IF_TYPE_SECOND = 2,
    SQL_IF_TYPE_THIRD = 3,
    SQL_IF_TYPE_FOUR = 4,
    SQL_IF_TYPE_FIVE = 5,
    SQL_IF_TYPE_SIX = 6,
    SQL_IF_TYPE_SEVEN = 7,
    SQL_IF_TYPE_EIGHT = 8,
    SQL_IF_TYPE_NINE = 9,
    SQL_IF_TYPE_TEN = 10,
    SQL_IF_TYPE_ELEVEN = 11,
    SQL_IF_TYPE_TWELVE = 12,
    SQL_IF_TYPE_THIRTEEN = 13,
    SQL_IF_TYPE_FOURTEEN = 14,
    SQL_IF_TYPE_FIFTEEN = 15,
    SQL_IF_TYPE_SIXTEEN = 16,
    SQL_IF_TYPE_SEVENTEEN = 17
};


#import <FMDB.h>
#import "LCDBSql.h"
#import "LCSingleton.h"

@interface LCBaseDatabase : FMDatabaseQueue

@property (nonatomic,assign)NSInteger dbVersion;
@property (nonatomic,strong)LCBaseDatabase *db;

INTERFACE_SINGLETON(LCBaseDatabase)

- (NSString *)dbPathSqliteName:(NSString *)sqliteName;
- (NSString *)libraryPathSearchPath;
- (NSString *)getPath:(NSString *)libraryPath sqliteName:(NSString *)sqliteName;
- (NSString *)conversionLibraryImagePathOne:(NSString *)imagePath;
- (NSString *)dateFormatter1970ForTimestamp:(unsigned int)chatTimestamp formatterString:(NSString *)formatterString;
@end
